﻿using MahApps.Metro.Controls;
using System.Windows.Controls;
using UpperComputer.WPF.Entry.Common.Extensions;
using UpperComputer.WPF.Entry.ViewModels;

namespace UpperComputer.WPF.Entry.Views
{
    /// <summary>
    /// MenuPage.xaml 的交互逻辑
    /// </summary>
    public partial class MenuPage : Page
    {
        public MenuPage()
        {
            InitializeComponent();
            DataContext = Furion.App.GetService<MenuViewModel>();
            OperationPanel.FindChildren<Button>().CheckPermissions(nameof(MenuPage));
        }
    }
}
